import request from '@/utils/request'
//这个是刚刚哪个数据表的接口
// 查询主页列表
export function listGovhome(query) {
  return request({
    url: '/truth/govhome/list',
    method: 'get',
    params: query
  })
}

// 查询主页详细
export function getGovhome(govUserid) {
  return request({
    url: '/truth/govhome/' + govUserid,
    method: 'get'
  })
}

// 新增主页
export function addGovhome(data) {
  return request({
    url: '/truth/govhome',
    method: 'post',
    data: data
  })
}

// 修改主页
export function updateGovhome(data) {
  return request({
    url: '/truth/govhome',
    method: 'put',
    data: data
  })
}

// 删除主页
export function delGovhome(govUserid) {
  return request({
    url: '/truth/govhome/' + govUserid,
    method: 'delete'
  })
}
